<template>
  <div>
    <p class="hello">
      <br/>
      <br/>
      你好，{{adminName}}
      <br/>
      欢迎来到智慧社区管理系统
    </p>
  </div>
</template>

<script>
export default {
  data(){
    return{
      adminName: ''
    }
  },
  created(){
    this.getAdminName()
  },
  methods:{
    async getAdminName(){
      const {data:res} = await this.$http.get('/admin/name')
      if(res.errorCode !== 200) return
      this.adminName=res.data
    }
  }
}
</script>

<style>
.hello{
  font-size: 55px;
  font-weight:900;
}
</style>